package cn.jinzhu.springcloud.service;

import cn.jinzhu.springcloud.entity.Payment;
import cn.jinzhu.springcloud.mapper.PaymentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServie {
    @Resource
    private PaymentMapper paymentMapper;

    public int create(Payment payment)
    {
        return paymentMapper.create(payment);
    }

    public Payment getPaymentById(Long id)
    {
        return paymentMapper.getPaymentById(id);
    }
}
